using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Gcollision : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }
    private void OnCollisionEnter(Collider collision)
    {

        Debug.Log("Name is " + collision.name);
        Debug.Log("开始接触");
    }
    void OnCollisionExit(Collision collision)
    {
        Debug.Log("接触结束");
    }
    void OnCollisionStay(Collision collision)
    {
        Debug.Log("接触持续中");
    }
}
